package com.cqqs.mapper.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author ysl
 * @Date 2022/9/14
 */
@Data
@TableName(value = "contact")
@ApiModel(value = "通讯录")
public class TechContact implements Serializable {
    private static final long serialVersionUID = -5541824215275913450L;

    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "id不能为空")
    private Integer id;

    @TableField(value = "name")
    @NotNull(message = "姓名不能为空")
    private String name;

    /**
     * 座机
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 手机
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * email
     */
    @TableField(value = "email")
    private String email;

    /**
     * 单位
     */
    @TableField(value = "unit")
    private String unit;

    /**
     * 部门
     */
    @TableField(value = "department")
    private String department;

    /**
     * 角色
     */
    @TableField(value = "role")
    private String role;


}
